package Frame.common;

import java.awt.Color;
import java.awt.Component;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Insets;
import java.awt.Rectangle;
import java.awt.RenderingHints;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.geom.RoundRectangle2D;

import javax.swing.JComponent;
import javax.swing.JPanel;
import javax.swing.UIManager;
import javax.swing.border.Border;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;

/**
 * @author 陈思威 设置选项卡窗格的外观
 *
 */
public class MyTabbedPaneUI extends javax.swing.plaf.basic.BasicTabbedPaneUI{
	private Tab tab;
	private Graphics gg;
	 private int arcH = 15;
     private int arcW = 15;
	public MyTabbedPaneUI(Tab tab) {
		this.tab = tab;
	}
//	@Override
//	protected void paintTab(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect,
//			Rectangle textRect) {
//		this.gg = g;
//		g.setColor(new Color(222, 225, 230));// 选项卡窗格的背景颜色
//		g.fillRect(rects[tabIndex].x, rects[tabIndex].y, rects[tabIndex].width, rects[tabIndex].height);
//		//System.out.println(tab.getSelectedIndex());
//		g.setColor(Color.BLACK);// 选项卡窗格的边框颜色
//		g.drawRect(rects[tabIndex].x, rects[tabIndex].y, rects[tabIndex].width, rects[tabIndex].height);
//	}
}
